<template>
  <div >
    <el-carousel indicator-position="outside" height="480px">
      <el-carousel-item v-for="item in list" :key="item.bannerId">
        <a :href="item.bannerRepeaturl" class="item">
          <img class="img" :src="item.bannerImgurl" :alt="item.bannerRepeaturl" />
        </a>
      </el-carousel-item>
    </el-carousel>
  </div>
</template>
<script>
export default {
  name: 'IndexBanner',
  props: {
    list: Array
  },
  data () {
    return {
    }
  }
}

</script>
<style>
.img {
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: -960px;
  width: 1920px;
  height: 480px;
}
</style>
